package cn.funeralobjects.dictms.model;

import cn.funeralobjects.util.annotation.ArgHasLength;
import cn.funeralobjects.util.annotation.ArgNoNullElements;
import cn.funeralobjects.util.annotation.ArgNotZero;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author FuneralObjects
 * Create date: 2020/6/2 10:42 PM
 */
@Data
@Accessors(chain = true)
public class DictRelate {
    /**
     * 编码
     */
    @ArgHasLength
    private String code;
    /**
     * 备注
     */
    private String remark;
    /**
     * 头部字典目录id
     */
    @ArgNotZero
    private Integer headDictId;
    /**
     * 深度
     */
    @ArgNotZero
    private Short depth;
    /**
     * 规则联级顺序id集合
     */
    @ArgNoNullElements
    private List<Integer> rule;
}
